import Layout from '@/layout/index'

const serviceRouter = {
  path: '/service-control',
  component: Layout,
  redirect: '/service-control/service-status',
  alwaysShow: true,
  name: 'serviceControl',
  meta: {
    title: '服务控制',
    icon: 'service-control',
    roles: ['admin', 'editor']
  },
  children: [
    {
      path: 'service-status',
      name: 'serviceStatus',
      component: () => import('@/views/serviceStatus/index'),
      meta: {
        title: '服务运行状态控制',
        icon: 'status',
        roles: ['admin']
      }
    },
    {
      path: 'service-config',
      name: 'serviceConfig',
      component: () => import('@/views/serviceConfig/index'),
      meta: {
        title: '服务配置信息管理',
        icon: 'config',
        roles: ['admin']
      }
    }
  ]
}
export default serviceRouter
